import torch
import matplotlib.pyplot as plt

x = torch.linspace(0, 5, 40)
y = torch.log(x)
plt.plot(x, y, 'r-')
plt.show()
